/*
 * @Descripttion:
 * @version:
 * @Author: sueRimn
 * @Date: 2021-12-22 15:39:30
 * @LastEditors: sueRimn
 * @LastEditTime: 2022-09-15 14:10:54
 */
import { constantRoutes } from "../router/constRoutes.js";
const menuList = [
  {
    name: "工作台",
    key: "workbench",
    path: "/workbench",
    icon: "",
    redirect: "",
    children: [],
  },
  {
    name: "电子公文",
    key: "electronDocument",
    path: "/electronDocument",
    icon: "",
    redirect: "",
    children: [
      {
        name: "收文登记",
        key: "swRegister",
        path: "/electronDocument/swRegister",
        icon: "",
        redirect: "",
        children: [],
      },
      {
        name: "发文登记",
        key: "fwRegister",
        path: "/electronDocument/fwRegister",
        icon: "",
        redirect: "",
        children: [],
      },
      {
        name: "公文检索",
        key: "searchDocument",
        path: "/electronDocument/searchDocument",
        icon: "",
        redirect: "",
        children: [],
      },
    ],
  },
];
const menu = {
  getMenuList() {
    return {
      code: 0,
      message: "获取菜单成功",
      menuList: JSON.stringify(constantRoutes)
    }
  }
}
export default menu;